import axios from '@/libs/api.request'

export const getSummary = () => {
  return axios.request({
    url: 'api/HttpAutoTestService/reports/summary/',
    method: 'get'
  })
};

export const getReports = (val) => {
  return axios.request({
    url: 'api/HttpAutoTestService/reports/list/',
    params: val,
    method: 'get'
  })
};

export const getTestcaseReport = (val) => {
  return axios.request({
    url: 'api/HttpAutoTestService/report/testcase/',
    params: val,
    method: 'get'
  })
}

export const getTestsuiteReport = (val) => {
  return axios.request({
    url: 'api/HttpAutoTestService/report/testsuite/',
    params: val,
    method: 'get'
  })
}
